package com.erp.gather.domain.bo;

import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 商品侵权词例外情况业务对象 erp_seller_store_product_infringing_keywords_exceptions
 *
 * @author erp
 * @date 2023-12-06
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class ErpSellerStoreProductInfringingKeywordsExceptionsBo extends BaseEntity {

    /**
     * 主键
     */
//    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 关键词id
     */
    @NotNull(message = "关键词id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long keywordsId;

    /**
     * 例外条件
     */
    @NotBlank(message = "例外条件不能为空", groups = { AddGroup.class, EditGroup.class })
    private String exceptionsClause;

    /**
     * 状态
     */
//    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    /**
     * 乐观锁
     */
//    @NotBlank(message = "乐观锁不能为空", groups = { AddGroup.class, EditGroup.class })
    private String revision;


}
